/*
 * @Author: zhuwenzhi
 * @Date: 2024-06-19 22:38:34
 * @LastEditTime: 2024-06-19 22:38:41
 * @LastEditors: zhuwenzhi
 * @FilePath: /dva-quickstart/src/plugins/onErros.js
 * @Description: 错误提示
 */
import { message } from "antd";

const ERROR_MSG_DURATION = 3; // 3 秒

export default {
  onError(e) {
    message.error(e.message, ERROR_MSG_DURATION);
  },
};
